package com.panda.model;

import lombok.Data;
import lombok.ToString;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.sql.Timestamp;

@Data
@Entity
@ToString
@Table(name = "product_info")
public class ProductInfo {

    @Id
    @Column(name = "id")
    private String id;          // 主键id

    @Column(name = "product_code")
    private String productCode; // 产品编码

    @Column(name = "product_name")
    private String productName; // 产品名称

    @Column(name = "user_id")
    private String userId;      // 用户ID

    @Column(name = "user_name")
    private String userName;    // 用户名

    @Column(name = "crt_usr")
    private String crtUsr;      // 创建人

    @Column(name = "crt_tim")
    private Timestamp crtTim;   // 创建时间

    @Column(name = "upd_usr")
    private String updUsr;      // 更新人

    @Column(name = "upd_tim")
    private Timestamp updTim;   // 更新时间
}